<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>NVTX C API Reference: nvToolsExtSync.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">NVTX C API Reference<span id="projectnumber">&#160;v3</span>
   </div>
   <div id="projectbrief">NVIDIA Tools Extension Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_48b95086e7eb28d79ef283b47c5fa0c6.html">nvtx3</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">nvToolsExtSync.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment"> * SPDX-FileCopyrightText: Copyright (c) 2009-2025 NVIDIA CORPORATION &amp; AFFILIATES. All rights reserved.</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment"> * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment"> *</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="comment"> * you may not use this file except in compliance with the License.</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="comment"> * You may obtain a copy of the License at</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="comment"> *</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="comment"> *     http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="comment"> *</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="comment"> * See the License for the specific language governing permissions and</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="comment"> * limitations under the License.</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span><span class="comment"> *</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="comment"> * Licensed under the Apache License v2.0 with LLVM Exceptions.</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="comment"> * See https://nvidia.github.io/NVTX/LICENSE.txt for license information.</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="comment"> */</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#include &quot;<a class="code" href="nv_tools_ext_8h.html">nvToolsExt.h</a>&quot;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#ifndef NVTOOLSEXT_SYNC_V3</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">#define NVTOOLSEXT_SYNC_V3</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span><span class="comment">/* \cond SHOW_HIDDEN</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="comment">* \version \NVTX_VERSION_2</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span><span class="comment">*/</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span><span class="preprocessor">#define NVTX_SYNCUSER_ATTRIB_STRUCT_SIZE ( (uint16_t)( sizeof(nvtxSyncUserAttributes_v0) ) )</span></div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span><span class="comment">/*  ------------------------------------------------------------------------- */</span></div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span><span class="comment">/* \cond SHOW_HIDDEN</span></div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span><span class="comment">* \brief Used to build a non-colliding value for resource types separated class</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span><span class="comment">* \version \NVTX_VERSION_2</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span><span class="comment">*/</span></div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span><span class="preprocessor">#define NVTX_RESOURCE_CLASS_SYNC_OS 2 </span></div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span><span class="preprocessor">#define NVTX_RESOURCE_CLASS_SYNC_PTHREAD 3 </span></div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span><span class="comment">/*  ------------------------------------------------------------------------- */</span></div>
<div class="foldopen" id="foldopen00113" data-start="{" data-end="};">
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"><a class="line" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gad74944ded1068254043d7400a66ce887">  113</a></span><span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code hl_enumeration" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gad74944ded1068254043d7400a66ce887">nvtxResourceSyncPosixThreadType_t</a></div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>{</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span>    NVTX_RESOURCE_TYPE_SYNC_PTHREAD_MUTEX = NVTX_RESOURCE_MAKE_TYPE(SYNC_PTHREAD, 1), <span class="comment">/* pthread_mutex_t  */</span></div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno">  116</span>    NVTX_RESOURCE_TYPE_SYNC_PTHREAD_CONDITION = NVTX_RESOURCE_MAKE_TYPE(SYNC_PTHREAD, 2), <span class="comment">/* pthread_cond_t  */</span></div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno">  117</span>    NVTX_RESOURCE_TYPE_SYNC_PTHREAD_RWLOCK = NVTX_RESOURCE_MAKE_TYPE(SYNC_PTHREAD, 3), <span class="comment">/* pthread_rwlock_t  */</span></div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno">  118</span>    NVTX_RESOURCE_TYPE_SYNC_PTHREAD_BARRIER = NVTX_RESOURCE_MAKE_TYPE(SYNC_PTHREAD, 4), <span class="comment">/* pthread_barrier_t  */</span></div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno">  119</span>    NVTX_RESOURCE_TYPE_SYNC_PTHREAD_SPINLOCK = NVTX_RESOURCE_MAKE_TYPE(SYNC_PTHREAD, 5), <span class="comment">/* pthread_spinlock_t  */</span></div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno">  120</span>    NVTX_RESOURCE_TYPE_SYNC_PTHREAD_ONCE = NVTX_RESOURCE_MAKE_TYPE(SYNC_PTHREAD, 6) <span class="comment">/* pthread_once_t  */</span></div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno">  121</span>} <a class="code hl_enumeration" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gad74944ded1068254043d7400a66ce887">nvtxResourceSyncPosixThreadType_t</a>;</div>
</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno">  122</span> </div>
<div class="foldopen" id="foldopen00125" data-start="{" data-end="};">
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"><a class="line" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gad86534581d1769a5d946a2f0d98cc8a1">  125</a></span><span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code hl_enumeration" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gad86534581d1769a5d946a2f0d98cc8a1">nvtxResourceSyncWindowsType_t</a></div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno">  126</span>{</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno">  127</span>    NVTX_RESOURCE_TYPE_SYNC_WINDOWS_MUTEX = NVTX_RESOURCE_MAKE_TYPE(SYNC_OS, 1),</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno">  128</span>    NVTX_RESOURCE_TYPE_SYNC_WINDOWS_SEMAPHORE = NVTX_RESOURCE_MAKE_TYPE(SYNC_OS, 2),</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>    NVTX_RESOURCE_TYPE_SYNC_WINDOWS_EVENT = NVTX_RESOURCE_MAKE_TYPE(SYNC_OS, 3),</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>    NVTX_RESOURCE_TYPE_SYNC_WINDOWS_CRITICAL_SECTION = NVTX_RESOURCE_MAKE_TYPE(SYNC_OS, 4),</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span>    NVTX_RESOURCE_TYPE_SYNC_WINDOWS_SRWLOCK = NVTX_RESOURCE_MAKE_TYPE(SYNC_OS, 5)</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span>} <a class="code hl_enumeration" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gad86534581d1769a5d946a2f0d98cc8a1">nvtxResourceSyncWindowsType_t</a>;</div>
</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span> </div>
<div class="foldopen" id="foldopen00138" data-start="{" data-end="};">
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gabd911875209941190ff52505407c7609">  138</a></span><span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code hl_enumeration" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gabd911875209941190ff52505407c7609">nvtxResourceSyncLinuxType_t</a></div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno">  139</span>{</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno">  140</span>    NVTX_RESOURCE_TYPE_SYNC_LINUX_MUTEX = NVTX_RESOURCE_MAKE_TYPE(SYNC_OS, 1),</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno">  141</span>    NVTX_RESOURCE_TYPE_SYNC_LINUX_FUTEX = NVTX_RESOURCE_MAKE_TYPE(SYNC_OS, 2),</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno">  142</span>    NVTX_RESOURCE_TYPE_SYNC_LINUX_SEMAPHORE = NVTX_RESOURCE_MAKE_TYPE(SYNC_OS, 3),</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno">  143</span>    NVTX_RESOURCE_TYPE_SYNC_LINUX_COMPLETION = NVTX_RESOURCE_MAKE_TYPE(SYNC_OS, 4),</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno">  144</span>    NVTX_RESOURCE_TYPE_SYNC_LINUX_SPINLOCK = NVTX_RESOURCE_MAKE_TYPE(SYNC_OS, 5),</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno">  145</span>    NVTX_RESOURCE_TYPE_SYNC_LINUX_SEQLOCK = NVTX_RESOURCE_MAKE_TYPE(SYNC_OS, 6),</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno">  146</span>    NVTX_RESOURCE_TYPE_SYNC_LINUX_RCU = NVTX_RESOURCE_MAKE_TYPE(SYNC_OS, 7)</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span>} <a class="code hl_enumeration" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gabd911875209941190ff52505407c7609">nvtxResourceSyncLinuxType_t</a>;</div>
</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span> </div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"><a class="line" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga2601dab93020f0a531dbaa78ef6a90f7">  154</a></span><span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code hl_enumeration" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gabd911875209941190ff52505407c7609">nvtxResourceSyncLinuxType_t</a> <a class="code hl_typedef" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga2601dab93020f0a531dbaa78ef6a90f7">nvtxResourceSyncAndroidType_t</a>;</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno">  155</span> </div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"><a class="line" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga79ab2a04ba725255a14f1d2a34b92f9f">  164</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span>nvtxSyncUser* <a class="code hl_typedef" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga79ab2a04ba725255a14f1d2a34b92f9f">nvtxSyncUser_t</a>;</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno">  165</span> </div>
<div class="foldopen" id="foldopen00235" data-start="{" data-end="};">
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"><a class="line" href="structnvtx_sync_user_attributes__v0.html">  235</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="structnvtx_sync_user_attributes__v0.html">nvtxSyncUserAttributes_v0</a></div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno">  236</span>{</div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"><a class="line" href="structnvtx_sync_user_attributes__v0.html#a5f765c007f7b252496240c4fd9e833b8">  244</a></span>    uint16_t <a class="code hl_variable" href="structnvtx_sync_user_attributes__v0.html#a5f765c007f7b252496240c4fd9e833b8">version</a>;</div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno">  245</span> </div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"><a class="line" href="structnvtx_sync_user_attributes__v0.html#ad55d1c1734d77c23863234c28667a4e1">  252</a></span>    uint16_t <a class="code hl_variable" href="structnvtx_sync_user_attributes__v0.html#ad55d1c1734d77c23863234c28667a4e1">size</a>;</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno">  253</span> </div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"><a class="line" href="structnvtx_sync_user_attributes__v0.html#ab31b719d75e5a4b64a7052327c2db023">  261</a></span>    int32_t <a class="code hl_variable" href="structnvtx_sync_user_attributes__v0.html#ab31b719d75e5a4b64a7052327c2db023">messageType</a>;            <span class="comment">/* nvtxMessageType_t */</span></div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno">  262</span> </div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"><a class="line" href="structnvtx_sync_user_attributes__v0.html#af0a877617fbf058cc2b6ee5c97a28ca6">  267</a></span>    <a class="code hl_union" href="unionnvtx_message_value__t.html">nvtxMessageValue_t</a> <a class="code hl_variable" href="structnvtx_sync_user_attributes__v0.html#af0a877617fbf058cc2b6ee5c97a28ca6">message</a>;</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno">  268</span> </div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno">  269</span>} <a class="code hl_struct" href="structnvtx_sync_user_attributes__v0.html">nvtxSyncUserAttributes_v0</a>;</div>
</div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno">  270</span> </div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno">  271</span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="structnvtx_sync_user_attributes__v0.html">nvtxSyncUserAttributes_v0</a> nvtxSyncUserAttributes_t;</div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno">  272</span> </div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno">  273</span><span class="comment">/* ------------------------------------------------------------------------- */</span></div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"><a class="line" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gafa5155c0890472bcaaba59e8a20c397e">  292</a></span>NVTX_DECLSPEC <a class="code hl_typedef" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga79ab2a04ba725255a14f1d2a34b92f9f">nvtxSyncUser_t</a> NVTX_API <a class="code hl_function" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gafa5155c0890472bcaaba59e8a20c397e">nvtxDomainSyncUserCreate</a>(nvtxDomainHandle_t domain, <span class="keyword">const</span> nvtxSyncUserAttributes_t* attribs);</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno">  293</span> </div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno">  294</span><span class="comment">/* ------------------------------------------------------------------------- */</span></div>
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno"><a class="line" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gadcb0093d514169e0ef8e77df268a05a3">  310</a></span>NVTX_DECLSPEC <span class="keywordtype">void</span> NVTX_API <a class="code hl_function" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gadcb0093d514169e0ef8e77df268a05a3">nvtxDomainSyncUserDestroy</a>(<a class="code hl_typedef" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga79ab2a04ba725255a14f1d2a34b92f9f">nvtxSyncUser_t</a> handle);</div>
<div class="line"><a id="l00311" name="l00311"></a><span class="lineno">  311</span> </div>
<div class="line"><a id="l00312" name="l00312"></a><span class="lineno">  312</span><span class="comment">/* ------------------------------------------------------------------------- */</span></div>
<div class="line"><a id="l00327" name="l00327"></a><span class="lineno"><a class="line" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga095b4608933461c8be0197d91536f799">  327</a></span>NVTX_DECLSPEC <span class="keywordtype">void</span> NVTX_API <a class="code hl_function" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga095b4608933461c8be0197d91536f799">nvtxDomainSyncUserAcquireStart</a>(<a class="code hl_typedef" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga79ab2a04ba725255a14f1d2a34b92f9f">nvtxSyncUser_t</a> handle);</div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno">  328</span> </div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno">  329</span><span class="comment">/* ------------------------------------------------------------------------- */</span></div>
NVTX_DECLSPEC <span class="keywordtype">void</span> NVTX_API <a class="code hl_function" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga0e55c70eb9e00dab800a1f8d88a8ef64">nvtxDomainSyncUserAcquireFailed</a>(<a class="code hl_typedef" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga79ab2a04ba725255a14f1d2a34b92f9f">nvtxSyncUser_t</a> handle);<div class="line"><a id="l00345" name="l00345"></a><span class="lineno">  345</span> </div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno">  346</span><span class="comment">/* ------------------------------------------------------------------------- */</span></div>
NVTX_DECLSPEC <span class="keywordtype">void</span> NVTX_API <a class="code hl_function" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga6ea2a313cad77c58dc4150fdd08ef72c">nvtxDomainSyncUserAcquireSuccess</a>(<a class="code hl_typedef" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga79ab2a04ba725255a14f1d2a34b92f9f">nvtxSyncUser_t</a> handle);<div class="line"><a id="l00362" name="l00362"></a><span class="lineno">  362</span> </div>
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno">  363</span><span class="comment">/* ------------------------------------------------------------------------- */</span></div>
<div class="line"><a id="l00379" name="l00379"></a><span class="lineno"><a class="line" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga4524252698484b2af060b4b37bac6840">  379</a></span>NVTX_DECLSPEC <span class="keywordtype">void</span> NVTX_API <a class="code hl_function" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga4524252698484b2af060b4b37bac6840">nvtxDomainSyncUserReleasing</a>(<a class="code hl_typedef" href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga79ab2a04ba725255a14f1d2a34b92f9f">nvtxSyncUser_t</a> handle);</div>
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno">  380</span> </div>
<div class="line"><a id="l00381" name="l00381"></a><span class="lineno">  381</span> </div>
 <span class="comment">/*END defgroup*/</span><div class="line"><a id="l00383" name="l00383"></a><span class="lineno">  383</span> </div>
<div class="line"><a id="l00384" name="l00384"></a><span class="lineno">  384</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l00385" name="l00385"></a><span class="lineno">  385</span>}</div>
<div class="line"><a id="l00386" name="l00386"></a><span class="lineno">  386</span><span class="preprocessor">#endif </span><span class="comment">/* __cplusplus */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00387" name="l00387"></a><span class="lineno">  387</span> </div>
<div class="line"><a id="l00388" name="l00388"></a><span class="lineno">  388</span><span class="preprocessor">#ifndef NVTX_NO_IMPL</span></div>
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno">  389</span><span class="preprocessor">#define NVTX_IMPL_GUARD_SYNC </span><span class="comment">/* Ensure other headers cannot be included directly */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00390" name="l00390"></a><span class="lineno">  390</span><span class="preprocessor">#include &quot;nvtxDetail/nvtxImplSync_v3.h&quot;</span></div>
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno">  391</span><span class="preprocessor">#undef NVTX_IMPL_GUARD_SYNC</span></div>
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno">  392</span><span class="preprocessor">#endif </span><span class="comment">/*NVTX_NO_IMPL*/</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno">  393</span> </div>
<div class="line"><a id="l00394" name="l00394"></a><span class="lineno">  394</span><span class="preprocessor">#endif </span><span class="comment">/* NVTOOLSEXT_SYNC_V3 */</span><span class="preprocessor"></span></div>
<div class="ttc" id="agroup___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n_html_ga095b4608933461c8be0197d91536f799"><div class="ttname"><a href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga095b4608933461c8be0197d91536f799">nvtxDomainSyncUserAcquireStart</a></div><div class="ttdeci">NVTX_DECLSPEC void NVTX_API nvtxDomainSyncUserAcquireStart(nvtxSyncUser_t handle)</div><div class="ttdoc">Signal to tools that an attempt to acquire a user defined synchronization object.</div></div>
<div class="ttc" id="agroup___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n_html_ga0e55c70eb9e00dab800a1f8d88a8ef64"><div class="ttname"><a href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga0e55c70eb9e00dab800a1f8d88a8ef64">nvtxDomainSyncUserAcquireFailed</a></div><div class="ttdeci">NVTX_DECLSPEC void NVTX_API nvtxDomainSyncUserAcquireFailed(nvtxSyncUser_t handle)</div><div class="ttdoc">Signal to tools of failure in acquiring a user defined synchronization object This should be called a...</div></div>
<div class="ttc" id="agroup___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n_html_ga2601dab93020f0a531dbaa78ef6a90f7"><div class="ttname"><a href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga2601dab93020f0a531dbaa78ef6a90f7">nvtxResourceSyncAndroidType_t</a></div><div class="ttdeci">enum nvtxResourceSyncLinuxType_t nvtxResourceSyncAndroidType_t</div><div class="ttdoc">Resource type values for Android come from Linux.</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_sync_8h_source.html#l00154">nvToolsExtSync.h:154</a></div></div>
<div class="ttc" id="agroup___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n_html_ga4524252698484b2af060b4b37bac6840"><div class="ttname"><a href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga4524252698484b2af060b4b37bac6840">nvtxDomainSyncUserReleasing</a></div><div class="ttdeci">NVTX_DECLSPEC void NVTX_API nvtxDomainSyncUserReleasing(nvtxSyncUser_t handle)</div><div class="ttdoc">Signal to tools of releasing a reservation on user defined synchronization object This should be call...</div></div>
<div class="ttc" id="agroup___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n_html_ga6ea2a313cad77c58dc4150fdd08ef72c"><div class="ttname"><a href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga6ea2a313cad77c58dc4150fdd08ef72c">nvtxDomainSyncUserAcquireSuccess</a></div><div class="ttdeci">NVTX_DECLSPEC void NVTX_API nvtxDomainSyncUserAcquireSuccess(nvtxSyncUser_t handle)</div><div class="ttdoc">Signal to tools of success in acquiring a user defined synchronization object This should be called a...</div></div>
<div class="ttc" id="agroup___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n_html_ga79ab2a04ba725255a14f1d2a34b92f9f"><div class="ttname"><a href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#ga79ab2a04ba725255a14f1d2a34b92f9f">nvtxSyncUser_t</a></div><div class="ttdeci">struct nvtxSyncUser * nvtxSyncUser_t</div><div class="ttdoc">User Defined Synchronization Object Handle . .</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_sync_8h_source.html#l00164">nvToolsExtSync.h:164</a></div></div>
<div class="ttc" id="agroup___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n_html_gabd911875209941190ff52505407c7609"><div class="ttname"><a href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gabd911875209941190ff52505407c7609">nvtxResourceSyncLinuxType_t</a></div><div class="ttdeci">nvtxResourceSyncLinuxType_t</div><div class="ttdoc">Resource type values for Linux and Linux derived OSs such as Android.</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_sync_8h_source.html#l00138">nvToolsExtSync.h:139</a></div></div>
<div class="ttc" id="agroup___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n_html_gad74944ded1068254043d7400a66ce887"><div class="ttname"><a href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gad74944ded1068254043d7400a66ce887">nvtxResourceSyncPosixThreadType_t</a></div><div class="ttdeci">nvtxResourceSyncPosixThreadType_t</div><div class="ttdoc">Resource type values for OSs with POSIX Thread API support.</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_sync_8h_source.html#l00113">nvToolsExtSync.h:114</a></div></div>
<div class="ttc" id="agroup___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n_html_gad86534581d1769a5d946a2f0d98cc8a1"><div class="ttname"><a href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gad86534581d1769a5d946a2f0d98cc8a1">nvtxResourceSyncWindowsType_t</a></div><div class="ttdeci">nvtxResourceSyncWindowsType_t</div><div class="ttdoc">Resource type values for Windows OSs.</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_sync_8h_source.html#l00125">nvToolsExtSync.h:126</a></div></div>
<div class="ttc" id="agroup___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n_html_gadcb0093d514169e0ef8e77df268a05a3"><div class="ttname"><a href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gadcb0093d514169e0ef8e77df268a05a3">nvtxDomainSyncUserDestroy</a></div><div class="ttdeci">NVTX_DECLSPEC void NVTX_API nvtxDomainSyncUserDestroy(nvtxSyncUser_t handle)</div><div class="ttdoc">Destroy a user defined synchronization object This is used to track non-OS synchronization working wi...</div></div>
<div class="ttc" id="agroup___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n_html_gafa5155c0890472bcaaba59e8a20c397e"><div class="ttname"><a href="group___s_y_n_c_h_r_o_n_i_z_a_t_i_o_n.html#gafa5155c0890472bcaaba59e8a20c397e">nvtxDomainSyncUserCreate</a></div><div class="ttdeci">NVTX_DECLSPEC nvtxSyncUser_t NVTX_API nvtxDomainSyncUserCreate(nvtxDomainHandle_t domain, const nvtxSyncUserAttributes_t *attribs)</div><div class="ttdoc">Create a user defined synchronization object This is used to track non-OS synchronization working wit...</div></div>
<div class="ttc" id="anv_tools_ext_8h_html"><div class="ttname"><a href="nv_tools_ext_8h.html">nvToolsExt.h</a></div></div>
<div class="ttc" id="astructnvtx_sync_user_attributes__v0_html"><div class="ttname"><a href="structnvtx_sync_user_attributes__v0.html">nvtxSyncUserAttributes_v0</a></div><div class="ttdoc">User Defined Synchronization Object Attributes Structure. .</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_sync_8h_source.html#l00235">nvToolsExtSync.h:236</a></div></div>
<div class="ttc" id="astructnvtx_sync_user_attributes__v0_html_a5f765c007f7b252496240c4fd9e833b8"><div class="ttname"><a href="structnvtx_sync_user_attributes__v0.html#a5f765c007f7b252496240c4fd9e833b8">nvtxSyncUserAttributes_v0::version</a></div><div class="ttdeci">uint16_t version</div><div class="ttdoc">Version flag of the structure.</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_sync_8h_source.html#l00244">nvToolsExtSync.h:244</a></div></div>
<div class="ttc" id="astructnvtx_sync_user_attributes__v0_html_ab31b719d75e5a4b64a7052327c2db023"><div class="ttname"><a href="structnvtx_sync_user_attributes__v0.html#ab31b719d75e5a4b64a7052327c2db023">nvtxSyncUserAttributes_v0::messageType</a></div><div class="ttdeci">int32_t messageType</div><div class="ttdoc">Message type specified in this attribute structure.</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_sync_8h_source.html#l00261">nvToolsExtSync.h:261</a></div></div>
<div class="ttc" id="astructnvtx_sync_user_attributes__v0_html_ad55d1c1734d77c23863234c28667a4e1"><div class="ttname"><a href="structnvtx_sync_user_attributes__v0.html#ad55d1c1734d77c23863234c28667a4e1">nvtxSyncUserAttributes_v0::size</a></div><div class="ttdeci">uint16_t size</div><div class="ttdoc">Size of the structure.</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_sync_8h_source.html#l00252">nvToolsExtSync.h:252</a></div></div>
<div class="ttc" id="astructnvtx_sync_user_attributes__v0_html_af0a877617fbf058cc2b6ee5c97a28ca6"><div class="ttname"><a href="structnvtx_sync_user_attributes__v0.html#af0a877617fbf058cc2b6ee5c97a28ca6">nvtxSyncUserAttributes_v0::message</a></div><div class="ttdeci">nvtxMessageValue_t message</div><div class="ttdoc">Message assigned to this attribute structure.</div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_sync_8h_source.html#l00267">nvToolsExtSync.h:267</a></div></div>
<div class="ttc" id="aunionnvtx_message_value__t_html"><div class="ttname"><a href="unionnvtx_message_value__t.html">nvtxMessageValue_t</a></div><div class="ttdef"><b>Definition</b> <a href="nv_tools_ext_8h_source.html#l00432">nvToolsExt.h:433</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
